package overloading;

public class VarArgDemo {

	static void foo() {
		System.out.println("foo()");
	}

	static void foo(int i) {
		System.out.println("foo(int i)");
	}

	static void foo(int i, int... j) {
		System.out.println("foo(int i)");
	}
	
	static void foo(int... i) {
		System.out.println("foo(int... i)");
	}
	
//	static void foo(int[] i) {
//		System.out.println("foo(int... i)");
//	}
	
	public static void main(String[] args) {
		foo();
		foo(1);
//		foo(1,2);
		foo(new int[]{1,2,3});
	}
}
